/**
 * @Project: InteractAPI
 * @Title: ConnectionFactory.java
 * @Package com.j99view.interact
 * @Description: TODO
 * Copyright: Copyright (c) 2010 
 * Company:ENDER.crop
 * 
 * @author ender
 * @date 2013-8-15 下午4:00:45
 * @version V1.0.0
 */
package com.j99view.interact.utils;

import java.io.IOException;
import java.net.InetAddress;
import java.net.InterfaceAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;

import com.j99view.interact.Player;

/**
 * @ClassName: ConnectionFactory
 * @Description: TODO
 * @author ender
 * @date 2013-8-15 下午4:00:45
 *
 */
public class ConnectionFactory {
	
	private ConnectionFactory(){
	}
	
	private static Socket getConnection(Player player) throws UnknownHostException, IOException{
		Socket socket = new Socket(player.getIp(), player.getPort());
		return socket;
	}
	
	private void close(Socket socket) throws IOException{
		socket.close();
	}

}
